/**
 *  生成算式的类
 * @author feina
 */
public class Exercise extends BinaryOperationBase{
    public void showAddPoeration(Integer num){
        if (!isExist("AddBase.txt")) {getAddBase(100);}
        showAddBase(num);
    }
    public void showSubPoeration(Integer num){
        if (!isExist("SubBase.txt")) {getSubBase(100);}
        showSubBase(num);
    }
    public void showMixPoeration(Integer num){
        if (!isExist("MixBase.txt")) {getMixBase();}
        showMixBase(num);
    }
    public String showOneAddPoeration(){
        if (!isExist("AddBase.txt")){getAddBase(100);}
        return showOneAdd();
    }
    public String showOneSubPoeration(){
        if (!isExist("SubBase.txt")){getSubBase(100);}
        return showOneSub();
    }
    public String showOneMixPoeration(){
        if (!isExist("MixBase.txt")) {getMixBase();}
        return showOneMix();
    }
}
